import { request } from './requests'

// 获取商品数据列表
export function getGoodsList(params) {
  return request({
    url: 'goods',
    params: params
  })
}

// 删除商品数据
export function deleteGoodsList(id) {
  return request({
    url: 'goods/' + id,
    method: 'delete'
  })
}

// 添加商品
export function addGoods(data) {
  return request({
    url: 'goods',
    method: 'post',
    data: data
  })
}
